<?php
define('IN_ADMIN',True);
require_once('../include/common.php');
require_once('../include/func_inc.php');
if ( !$_USER->id ) {
	show_msg('你还没有登录，请先登录', '../login.php', 1000);
}
//更新在线数据到数据库中
$blog = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."sms_receive where receiveperson='".$_USER->id."' and online='0'");
	if($blog["receiveperson"]!=''){
		$sms='1';
	}else{
		$sms='0';
	}
echo $sms;
exit;
?>